import scrapy


class BaiduSpider(scrapy.Spider):
    name = 'baidu'
    allowed_domains = ['www.59468.cn']
    start_urls = ['http://www.59468.cn/']

    def parse(self, response):
        print("-------------------------------------------------------------------")
        # a_list = response.xpath('//')
        # for sel in response.xpath('//img'):
        #     # title = sel.xpath('a/text()').extract()
        #     link = sel.xpath('img/@src').extract()
        #     desc = sel.xpath('text()').extract()
        #     # print(title, link, desc)
        #     print(sel)
        print(response.text)
        # pass
